import React from 'react';
import ReactDom from 'react-dom';
import { HashRouter as Router, Route,Switch} from 'react-router-dom'
import {App,CourseList} from './pages'
//BrowserRouterHashRouter
ReactDom.render(
    <Router>
        <Switch>
            <Route path={"/"} exact component={App}></Route>
            <Route path={'/courseList'} component={CourseList}/>
        </Switch>
    </Router>,
    document.getElementById('content')
);
